<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8" />
    <title>Vmodal测试</title>
    <link rel="stylesheet" type="text/css" href="https://cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css">
    <script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/vue/1.0.7/vue.min.js"></script>
    <!--<script type="application/javascript" src="../js/vue.js"></script>-->
</head>

<body>
    <div id="container">
        <h1>Vue demo</h1>
        <div id="app">
            <div id="template1">
                <input type="checkbox" id="checkbox" v-model="checked">
                <label for="checkbox">{{ checked }}</label>
            </div>
            <div id="template2">
                <input type="checkbox" id="jack" value="Jack" v-model="checkedNames">
                <label for="jack">Jack</label>
                <input type="checkbox" id="john" value="John" v-model="checkedNames">
                <label for="john">John</label>
                <input type="checkbox" id="mike" value="Mike" v-model="checkedNames">
                <label for="mike">Mike</label>
                <br>
                <span>Checked names: {{ checkedNames }}</span>
            </div>
            <div id="template3">
                <input type="radio" id="one" value="one" v-model="picked">
                <label for="one">One</label>
                <input type="radio" id="two" value="two" v-model="picked">
                <label for="two">Two</label>
                <input type="radio" id="thrid" value="thrid" v-model="picked">
                <label for="thrid">Thrid</label>
                <span>Picked:{{picked}}</span>
            </div>
            <div id="template4">
                <select v-model="selected2">
                  <option>A</option>
                  <option>B</option>
                  <option>C</option>
                </select>
                <span>Selected: {{ selected2 }}</span>
            </div>
        </div>
        <div id="template5">
            <select v-model="selected3">
              <option v-for="option in options" :value="option.value">
                {{ option.text }}
              </option>
            </select>
            <span>Selected: {{ selected3 }}</span>
        </div>
        <div id="template6">
            <input type="checkbox" v-model="toggle2" v-bind:true-value="a" v-bind:false-value="b">
        </div>
        <div id="template7">
            <input type="radio" v-model="pick" v-bind:value="a">
        </div>
        <div id="template8">
            <input type="text" v-model.number.trim.lazy="price">
            <span>设置套餐价格：￥{{price}}RMB</span>
        </div>
    </div>
    <script>
        var vm = new Vue({
            el: '#container',
            data: {
                checkedNames: [],
                selected3: 'C',
                options: [{
                    text: 'One',
                    value: 'A'
                }, {
                    text: 'Two',
                    value: 'B'
                }, {
                    text: 'Three',
                    value: 'C'
                }]
            },
            methods: {

            }
        })
    </script>
</body>

</html>
